﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hp.Vertica.Migration.SqlServer
{
    public class Column
    {
        public String Name { get; set; }
        public SqlDataType DataType { get; set; }
        public Boolean IsNullable { get; set; }
        public Boolean IsIdentity { get; set; }

        public Client.Internal.Column ToVertica()
        {
            Client.Internal.Column col = new Client.Internal.Column();
            col.Name = this.Name;
            col.DataType = this.DataType.VerticaDataType;
            col.IsIdentity = this.IsIdentity;
            col.IsNullable = this.IsNullable;
            return col;
        }
    }
}
